package com.itany.book.service;

import com.github.pagehelper.PageInfo;
import com.itany.book.pojo.Role;

import java.util.List;

/**
 * Author:yaozhiyuan0117@163.com
 * Time:2019/12/26 18:16
 * Describe:
 * version:1.0
 */
public interface RoleService {


    PageInfo<Role> findAll(Integer page, Integer rows, String name);

    Role findById(Integer id);

    void modifyRole(Integer id, String name, String[] permissions);

    void deleteById(Integer id);

    List<Role> findRoles();
}
